{template "content","header"}
{template "content","header_product"}
<!-- 内容begin-->
<div id="shop">
<div class="weizhi03">您当前所在的位置：<a href="#">重庆主材商城首页</a>>><a href="#">产品列表</a>>><a href="#">详细信息</a></div>

<div class="shop0201">
	<div class="shop0201_title"><h2>产品详细信息</h2></div>
	<div class="shop0201_c">
	<div class="shop0201_c_l"><img src="{thumb($thumb,296,246)}" width="300" height="250" /></div>
	<div class="shop0201_c_m"><ul><li class="p14 strong color15">{$title}</li>
	<li><span class="p12 strong color05">产品型号:</span>{$product_type}</li>
	<li><span class="p12 strong color05">价格:</span>{$price}</li>
	<li><span class="p12 strong color05">型号:</span>{$product_type}</li></ul>
	<input name="" type="button" class="inputbutton15" value="" />
	</div>
	<div class="shop0201_c_r">
	{if $_GET['a']!='public_preview'}
	{pc:content action="get_business"  return="datas"}
		
		<div class="title"><div class="titles">商家信息</div></div>
		<ul><li><label>联系人：</label>{$datas[business_name]}</li><li><label>电话：</label>{$datas[phone]}</li><li><label>地址：</label>{$datas[address]}</li><li><label>注册时间：</label>{date('Y-m-d',$datas[regdate])}</li></ul>
		
		<input name="" type="button" onclick="location.href='{APP_PATH}index.php?m=content&c=business&a=product&uid={$datas[userid]}'" class="inputbutton16" value="进入商铺>>" />
		{/pc}
	{/if}
	</div>
	</div>
</div>
<div class="shop0201">
	<div class="shop0202_title">
	<h3 class="on">产品详细信息</h3>
	<h3 >同类型产品</h3>
	
	</div>
	<div class="shop0202_c">
		<div class="shop0202_c_c">
			{$content}
		</div>
	</div>
</div>

<div class="shop0201">
	<div class="shop0201_title"><h2>我要咨询</h2></div>
	<div class="shop0201_c">
	<div class="shop0201_c01">
	<form action="index.php?m=content&c=business&a=message" method="post">
	<input type="hidden" value="{$username}" name="username">
	<span style="width:100%; float:left; margin-bottom:10px;"><label>咨询内容：</label>
	<textarea name="content" id="content" cols="" rows="" style="width:450px; float:left; padding:3px; height:60px; border:1px solid #cdcdcd;"></textarea></span>
	<span style="width:100%; line-height:20px; float:left; margin-bottom:10px; ">
	<label>联系人：</label><input name="name" id="name" type="text" style="float:left; border:1px solid #cdcdcd;" />
	<label>联系电话：</label><input name="phone" id="phone" type="text" style="border:1px solid #cdcdcd;" /></span>
	<span style="width:100%;   line-height:20px; float:left; margin-bottom:10px; ">
	<label>验证码：</label><input id="code" name="code" type="text" style="border:1px solid #cdcdcd; line-height:30px;" /> {form::checkcode('code_img', '4', '14', 84, 24)}</span>
	<input name="dosubmit" type="submit" class="inputbutton16" value="确定" style="margin-left:200px;" />
	</form>
	</div>
	{pc:content action="get_messages" username="$username" return="messages_data"}
	{loop $messages_data['data'] $r}
	<ul>
	<li class="black"><label>问：</label>{$r[content]}</li>
	<li class="red"><label>答：</label>{$r[rcontent]}</li>
	</ul>
	
	{/loop}
	{$messages_data['page']['nav']}
	{/pc}
	</div>
</div>
</div>
<!-- 内容end-->
<!--友情链接begin-->
<div class="m06">
  <div class="m06_title">
  <h1><a href="javascript:void(0);">友情链接</a></h1>
  </div>
  <ul>
   {pc:link  action="type_list" siteid="$siteid" order="listorder DESC" num="10" return="dat"}
		{loop $dat $v}
              {if $type==0}
            <li>  <a href="{$v[url]}" target="_blank">{$v[name]}</a>  </li>
              {else}
             <li> <a href="{$v[url]}" target="_blank"><img src="{$v[logo]}" width="88" height="31" style="border: 1px solid #FFBE7A;"></a> </li>
              {/if}
		{/loop}
	{/pc}
  </ul>
</div>
<!-- 友情链接end-->
<!-- 内容end-->
<!-- 
<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
 -->
{template "content","footer"}